<%@ taglib prefix="c"      uri="http://java.sun.com/jsp/jstl/core" %>

<c:forEach var="contact" items="${lstContact}" >
    <input type="checkbox"  id="chkContact" name="chkContact" value="${contact.id}"
           <c:forEach var="idSelected" items="${lstContactSelected}" >     
               <c:if test='${contact.id == idSelected }'>
                   checked
               </c:if>
           </c:forEach>            
           ><c:out value="${contact.firstName}"/> <c:out value="${contact.lastName}"/><br/>   
</c:forEach> 
